<#include "/common/head.ftl">

<@showTitle title="${i18n.getMessage('student')} > ${i18n.getMessage('student.allRecently')}">
<a href="student/doAllRecentlyReport.sgt">${i18n.getMessage('excel.export')}</a> |
	<a href="receipt/doReceiptDailyReport.sgt">${i18n.getMessage('search')}</a>
</@showTitle>

<br/>

<form id="form" onreset="$('error').hide()">

<@display.table id="listTable" name="students" sort="list" defaultsort="2">
	<@display.column title="${i18n.getMessage('lastName')}" style="white-space: nowrap" property="lastName" sortable="true"></@display.column>
	<@display.column title="${i18n.getMessage('firstName')}" property="firstName" href="student/showInfoStudent.sgt" paramId="id" paramProperty="id" sortable="true"></@display.column>
	<@display.column title="${i18n.getMessage('nickName')}" style="white-space: nowrap" property="nickName" sortable="true"></@display.column>
	<@display.column title="${i18n.getMessage('gender')}" sortable="true" class="center">${i18n.getMessage((listTable.gender.key)!)}</@display.column>
	<@display.column title="${i18n.getMessage('dateOfBirth')}" property="dateOfBirth" format="{0, date, ${i18n.getMessage('format.date')}}" sortable="true" class="center"></@display.column>
	<@display.column title="${i18n.getMessage('phoneNumber')}">${(listTable.phoneNumber)!}</@display.column>
	<@display.column title="Last Class">${(listTable.lastOffering.name)!}</@display.column>
	<@display.column title="Start Date">${(listTable.lastOffering.startDate)!}</@display.column>
	<@display.column title="${i18n.getMessage('comment')}">${(listTable.comment)!}</@display.column>
</@display.table>

</form>

<br/><br/>

<script>
deleteStudent = function() {
	var form = $('form');
	form.action = 'student/deleteSearchStudent.sgt';
	submitForm(form);
}

mergeStudent = function() {
	var form = $('form');
	form.action = 'student/mergeStudent.sgt';
	submitForm(form);
}
</script>